package cn.bigcontainer.alt.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.bigcontainer.alt.sys.po.Menu;

public interface MenuMapper extends BaseMapper<Menu> {

	@Select("select rm.menu_id from sys_role_menu rm LEFT JOIN sys_user_role ur on (ur.role_id = rm.role_id) where ur.user_id = #{userId}")
    List<Integer> selectMenuIdsByUser(Integer userId);
}
